package ru.rchervot.sanasar.client.gin;

import ru.rchervot.sanasar.client.rpc.RPCServiceAsync;
import ru.rchervot.sanasar.client.view.RecordCandidatesPresenter;
import ru.rchervot.sanasar.client.view.RecordPresenter;

import com.google.gwt.event.shared.HandlerManager;
import com.google.inject.Inject;
import com.google.inject.Provider;

public class ProviderRecordPresenterCandidates implements Provider<RecordPresenter> {
	@Inject RecordCandidatesPresenter.Display view;
	@Inject HandlerManager eventBus;
	@Inject RPCServiceAsync service;


	@Override
	public RecordPresenter get() {
		RecordCandidatesPresenter p = new RecordCandidatesPresenter(view, eventBus, service);
		p.bindDisplay();
		
		return p;
	}
}
